<div id="menu">
    <?php foreach($menues as $menu): ?>
    
        <div class="menu_item <?php echo ($menu->getNombre() == $selected_menu ) ? 'selected' : '';  ?>">
            <a href="<?php echo '/category/'.$menu->getNombre().'/'.$menu->getId(); ?>">
                <?php echo htmlentities($menu->getNombre()); ?>
            </a>
        </div>
    
    <?php endforeach; ?>
</div>